package cn.besbing.server.service.primary;

import cn.besbing.model.entities.primary.QcCommissionH;
import cn.besbing.model.entities.primary.QcCommissionHExample;
import cn.besbing.model.mapper.primary.QcCommissionHMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Xiamen HLYY Network Technology Co., Ltd.
 * DataLoader Cloud
 *
 * @Author sheny
 * @Date 2020/10/16  14:24
 * @Version 1.0
 * @Site https://besbing.cn
 * @Address Xiamen Bazaar U.S. District, 326 South Road, A Dong A209.
 */

@Service
public class PrimaryQcCmmissionHServiceImpl implements QcCommissionHMapper{

    @Autowired(required = false)
    private QcCommissionHMapper qcCommissionHMapper;

    public String getQchPrimary(@Param("billno") String billno){
        return qcCommissionHMapper.getPrimary(billno);
    }

    @Override
    public long countByExample(QcCommissionHExample example) {
        return qcCommissionHMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(QcCommissionHExample example) {
        return qcCommissionHMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String pkCommissionH) {
        return qcCommissionHMapper.deleteByPrimaryKey(pkCommissionH);
    }

    @Override
    public int insert(QcCommissionH record) {
        return qcCommissionHMapper.insert(record);
    }

    @Override
    public int insertSelective(QcCommissionH record) {
        return qcCommissionHMapper.insertSelective(record);
    }

    @Override
    public List<QcCommissionH> selectByExample(QcCommissionHExample example) {
        return qcCommissionHMapper.selectByExample(example);
    }

    @Override
    public QcCommissionH selectByPrimaryKey(String pkCommissionH) {
        return qcCommissionHMapper.selectByPrimaryKey(pkCommissionH);
    }

    @Override
    public int updateByExampleSelective(QcCommissionH record, QcCommissionHExample example) {
        return qcCommissionHMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(QcCommissionH record, QcCommissionHExample example) {
        return qcCommissionHMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(QcCommissionH record) {
        return qcCommissionHMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(QcCommissionH record) {
        return qcCommissionHMapper.updateByPrimaryKey(record);
    }

    @Override
    public String getPrimary(String billno) {
        return qcCommissionHMapper.getPrimary(billno);
    }
}
